# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ModelDataStats do
  @moduledoc """
  Stats of data used for train or evaluate the Model.

  ## Attributes

  *   `testAnnotationsCount` (*type:* `String.t`, *default:* `nil`) - Number of Annotations that are used for evaluating this Model. If the Model is evaluated multiple times, this will be the number of test Annotations used by the first evaluation. If the Model is not evaluated, the number is 0.
  *   `testDataItemsCount` (*type:* `String.t`, *default:* `nil`) - Number of DataItems that were used for evaluating this Model. If the Model is evaluated multiple times, this will be the number of test DataItems used by the first evaluation. If the Model is not evaluated, the number is 0.
  *   `trainingAnnotationsCount` (*type:* `String.t`, *default:* `nil`) - Number of Annotations that are used for training this Model.
  *   `trainingDataItemsCount` (*type:* `String.t`, *default:* `nil`) - Number of DataItems that were used for training this Model.
  *   `validationAnnotationsCount` (*type:* `String.t`, *default:* `nil`) - Number of Annotations that are used for validating this Model during training.
  *   `validationDataItemsCount` (*type:* `String.t`, *default:* `nil`) - Number of DataItems that were used for validating this Model during training.
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :testAnnotationsCount => String.t() | nil,
          :testDataItemsCount => String.t() | nil,
          :trainingAnnotationsCount => String.t() | nil,
          :trainingDataItemsCount => String.t() | nil,
          :validationAnnotationsCount => String.t() | nil,
          :validationDataItemsCount => String.t() | nil
        }

  field(:testAnnotationsCount)
  field(:testDataItemsCount)
  field(:trainingAnnotationsCount)
  field(:trainingDataItemsCount)
  field(:validationAnnotationsCount)
  field(:validationDataItemsCount)
end

defimpl Poison.Decoder, for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ModelDataStats do
  def decode(value, options) do
    GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ModelDataStats.decode(value, options)
  end
end

defimpl Poison.Encoder, for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ModelDataStats do
  def encode(value, options) do
    GoogleApi.Gax.ModelBase.encode(value, options)
  end
end
